package com.eg.egent.example;

import com.alibaba.fastjson.JSONObject;
import com.eg.egent.example.common.Constants;
import com.eg.egent.example.common.ApiUtil;

/**
 * @Description: 网络开门示例程序
 * @author liangjiange
 * @date 2016年10月11日 上午11:34:23
 */
public class NetWorkOpenExample {

	private static Integer encrypt = Constants.ENCRYPT_AES;

	private static Integer signMethod = Constants.SIGN_METHOD_HMAC;

	private static String taskDesc = "网络开门";

	public static void main(String[] args) {

		JSONObject mainContent = new JSONObject();
		mainContent.put("method", "door.network.open");
		//mainContent.put("main_control_mac", "00:16:02:01:AE:BE");
		//mainContent.put("comm_code", 16000100);
		mainContent.put("main_control_mac", "08:16:00:00:09:18");
		mainContent.put("comm_code",100);
		

		ApiUtil.excute(encrypt, signMethod, taskDesc, mainContent);

	}

}
